
<!DOCTYPE html>
<html>
<head>
    <title>上海市第一人民医院自助服务中心</title>
    <script src="https://img2.baidu.com/it/u=2213185174,1474348713&fm=253&fmt=auto&app=138&f=JPEG?w=333&h=500" type="text/javascript"></script>
    <script src="/yygh/Scripts/layer/layer.js" type="text/javascript"></script>
</head>
<body>
    <div class="container">
       
<script src="/yygh/Scripts/jsencrypt.min.js" type="text/javascript"></script>
<style type="text/css">  
    body
    {
        margin:0px;
    }
    .style2
    {
        height: 149px;
    }
    .style5
    {
        width: 240px;
    }
    .style11
    {
        height: 20px;
        text-align:left;
    }
    .style14
    {
        height: 20px;
        width: 240px;
        text-align: right;
    }
    .style21
    {
        height: 45px;
        width: 240px;
        text-align: right;
    }
    .style22
    {
        height: 45px;
        text-align: left;
        vertical-align: bottom;
    }
    .style23
    {
        height: 36px;
        width: 240px;
        text-align: right;
    }
    .style24
    {
        height: 36px;
        text-align: left;
        vertical-align: bottom;
    }
</style>

<script type="text/javascript">
    $(function () {

        $("#valiCode").bind("click", function () {
            this.src = "/yygh/Home/GetValidateCode"+"?time=" + (new Date()).getTime();
        });
        $("#valiCode").click();
    });

    function check() {
        if ($("#txtLoginId").val() == "") {
            $("#lblAlert").html("用户名/手机号不能为空");
            return false;
        }

        if ($("#txtLoginPwd").val() == "") {
            $("#lblAlert").html("密码不能为空");
            return false;
        }
        if ($("#txtCode").val() == "") {
            $("#lblAlert").html("验证码不能为空");
            return false;
        }

        var encrypt = new JSEncrypt();

        encrypt.setPublicKey($('#pubkey').val());

        $("#hid1").val(encrypt.encrypt($("#txtLoginId").val()));
        $("#txtLoginId").val("");
        $("#hid2").val(encrypt.encrypt($("#txtLoginPwd").val()));
        $("#txtLoginPwd").val("");

        $.ajax({
            url: '/yygh/Login/SubmitLogin',
            data: { "hid1": $("#hid1").val(), "hid2": $("#hid2").val(), "yzm": $("#txtCode").val(), "type": "" },
                type: "post",
                cache: false,
                success: function (json) {
                    if (json.Flag) {
                      
                        window.location.href = "/yygh/Home/LoginEnd" + "?url=%2fyygh%2fHome%2fReservationinfo%3fNBY%3dN%26RegDate%3d2022-07-05%26RegType%3dzj%26docID%3d002115%26deptId%3d2134340013%26RegFee%3d40.0000%26limitNoon%3d14%253A00-14%253A30";
                    } else {
                        $("#txtCode").val("");
                        $("#valiCode").click();
                        $("#lblAlert").html(json.Message);
                    }
                },
                error: function (xhr, errorStatus, errorMsg) { 
                    $("#lblAlert").html("[异常]" + errorMsg);
                }
            });
        return false;
    }
    function clearAll() {
        $("#txtLoginId").val("");
        $("#txtLoginPwd").val("");
        $("#txtCode").val("");
        return false;
    }
    </script>

<div style="background-color: white; height:480px; width:100%;">
<form id="form1" style="text-align:center;">
        <textarea id="pubkey" rows="15" cols="65" style="display:none">
                MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVB0fgYXqkXkJwRJ4ZVos9lXou
pwuQAy8QD7OnzdmtlDFJmrgUUEMu7z6EiZcm0C6TPtBrPjlqLDcimItH3ECf/xdf
zBnyMpMnM/Ed5W67krOUAYGkXk0NZZ9vC8Zr2/Qq8LagCyn0PBVqxKKOPy5wbZ9F
3waIjzvsNxJd/AhtewIDAQAB
            </textarea><br />
        <input type="hidden" ID="hid1" name="hid1" />
        <input type="hidden" ID="hid2" name="hid2" />
      <table style="height:480px; width:720px;" align="center" background="/yygh/Content/images/di-admini.jpg">
         <tr>
            <td class="style2" colspan="2" align="center"></td>
         </tr>
         <tr>
            <td class="style23" align="right" valign="bottom">
                <label style="font-weight:bold;font-family:微软雅黑;font-size:small;">用户名/手机号：</label>
             </td>
            <td class="style24" align="center" valign="bottom">
               &nbsp;<input type="text" style="font-family:微软雅黑;font-size:small;color:black;width:150px;" id="txtLoginId"  />  
            </td>
          </tr>
          <tr>
            <td class="style21" align="right" valign="bottom">
                 <label style="font-weight:bold;font-family:微软雅黑;font-size:small;">密  码：</label>
              </td>
            <td class="style22" align="left">
                &nbsp;<input type="password" style="font-family:微软雅黑;font-size:small;color:black;width:150px;font-weight:bold;" id="txtLoginPwd"  />  
            </td>
          </tr>
          <tr>
            <td class="style21" align="right" valign="bottom">
                <label style="font-weight:bold;font-family:微软雅黑;font-size:small;">验证码：</label>
            </td>
            <td class="style22" align="center">
              &nbsp;<input type="text" style="font-family:微软雅黑;font-size:small;color:black;width:150px;font-weight:bold;" id="txtCode"  />  </td>
          </tr>
          <tr>
            <td class="style14"></td>
            <td class="style11">
                    &nbsp;
                <img id="valiCode" style="cursor: pointer;"   alt="验证码" width="100px" height="30px" />
          <label ID="test0"   style="font-family:微软雅黑;font-size:small;color:#0066FF;font-weight:bold;"
                   >点击图片刷新</label>
                    <br /><br />
               &nbsp;<label id="lblAlert" style="font-size:small;color:red;font-weight:bold;"></label>
            </td>
          </tr>
          <tr>
            <td class="style5"></td>
            <td align="left" valign="middle">
                 <input name="imgbtnSure" id="imgbtnSure" type="image"  value="提交" src="/yygh/Content/images/dl.jpg" style="float: none" onclick="return check();" />
                &nbsp;<input name="imgbtnCancel" id="imgbtnCancel" type="image" onclick="return clearAll();" value="重置" src="/yygh/Content/images/cz.jpg" style="float: none" />
            &nbsp;
            <a id="lnkBtn" style="font-family:微软雅黑;font-size:small;color:#0099FF;font-weight:bold;"   
                    href="/yygh/Login/UserFogetPsw"><u>忘记密码</u></a>
                <a id="test1"  style="font-family:微软雅黑;font-size:small;color:#0099FF;font-weight:bold;"   
                    href="/yygh/Login/UserRegister"><u>快速注册</u></a>
            </td>
          </tr>
       </table>
    </form>
</div>

        
        
    </div>
</body>
</html>